import { markRaw } from 'vue';
import { Cpu } from "@element-plus/icons-vue";
import Node from './branch_node.vue';
import Property from './branch_property.vue';

// 导出当前目录的节点元数据
 export default {
   type: "branch",
   name: "条件分支",
   category: "控制节点",
   icon: markRaw(Cpu),
   serializableFields: ["conditions"],
   defaultData: {
     conditions: [
       {
         id: "condition-default",
         type: "default",
         name: "默认分支",
         scprit: "",
       },
     ],
   },
   component: markRaw(Node),
   propertyComponent: markRaw(Property),
 };